﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataCore.DomainObjects
{
    class ClassSystemcs : DomainObject<long>
    {
        private List<MetaClass> _classes;
        
        public ClassSystemcs()
        {
            _classes = new List<MetaClass>();
        }

        public void AddClass(MetaClass addedclass)
        {
            _classes.Add(addedclass);
        }

        public static void Load(String filename)
        {
        }

        public static void Save(string filename)
        {
            
        }

        public override int GetHashCode()
        {
            int m = 23;
            return String.Concat(m * 17,
                _classes != null ? _classes.GetHashCode().ToString():"0").GetHashCode();
        }

        public override void CopyFrom(DomainObject<long> T)
        {
            throw new NotImplementedException();
        }
    }
}
